<!DOCTYPE html>
<html>
	<head lang="en">
		<meta charset="UTF-8">
		<title>操作当当购物车页面</title>
		<link type="text/css" rel="stylesheet" href="css/cartStyle.css" />
		<script>
			function closeWin() {
				if (window.confirm("真的要关闭？"))
					window.close();
				else {
					alert("您放弃了关闭");
				}
			}

			function openjiesuan() {
				// for(let i=1;i<=2;i++){
				window.open("jiesuan1.html");
				// 	}
			}

			function collection() {
				alert("恭喜你收藏成功！");
			}
			function delete1() {
				window.location="delete.html";
				alert("删除成功！");
			}
			function delete2() {
				alert("你没有这个权限！");
			}
		</script>
	</head>
	<body>

		<div class="content">
			<div class="logo">
				<img src="images/dd_logo.jpg"><span><input type="button" value="关闭" style="width: 60px;
    height: 30px; border-radius: 10px; color:white; cursor:pointer; font-size: 14px;
font-weight: bold; border-color:transparent; background-color: transparent;" onclick="closeWin()" /></span>
				<!-- <input type="button" value="关闭窗口" onclick="closeWin()"/> -->
				<!-- border-color:transparent; -->
			</div>
			<div class="cartList" id="cartList">
				<ul>
					<li>商品图片</li>
					<li>商品信息</li>
					<li>单价</li>
					<li>数量</li>
					<li>总价</li>
					<li>操作</li>
				</ul>
				<ul>
					<li><img src="images/dog.jpg"></li>
					<li>我和狗狗活下来了</li>
					<li>¥<input type="text" name="price" value="21.90"></li>
					<li><input type="button" name="minus" value="-" onclick=""><input type="text" name="amount"
							value="1"><input type="button" name="plus" value="+" onclick=""></li>
					<li id="price0">¥21.90</li>
					<li>
						<p onclick="collection();">移入收藏</p>
						<p onclick="delete1();">删除</p>
					</li>
				</ul>
				<ul>
					<li><img src="images/mai.jpg"></li>
					<li>灰霾来了怎么办</li>
					<li>¥<input type="text" name="price" value="24.00"></li>
					<li><input type="button" name="minus" value="-" onclick=""><input type="text" name="amount"
							value="1"><input type="button" name="plus" value="+" onclick=""></li>
					<li id="price1">¥24.00</li>
					<li>
						<p onclick="collection();">移入收藏</p>
						<p onclick="delete2();">删除</p>
					</li>
				</ul>
				<ol>
					<li id="totalPrice">商品总计：<span></span></li>
					<li><span><input type="button" value="结算" onclick="openjiesuan()"
								style="width: 85px;
    height: 35px; font-size: 14px; color:white; cursor:pointer; font-weight: bold; border-color:transparent; background-color: transparent;" /></span></li>
				</ol>
			</div>
		</div>
	</body>
</html>
